<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of db
 *
 * @author sharl
 */

class db {

    private $dbUrl = "127.0.0.1";
    private $dnName = "bt_sharer";
    private $dbUser = "root";
    private $dbPassword = "xzx";
    private $dbPort = 3306;

    private function __construct() {

    }

    public static $instance;

    public static function getInstance() {
        if (!isset(self::$instance)) {
            $c = __CLASS__;
            self::$instance = new $c;
        }

        return self::$instance;
    }

    public function getDbPort() {
        return $this->dbPort;
    }

    public function getDbUrl() {
        return $this->dbUrl;
    }

    public function getDnName() {
        return $this->dnName;
    }

    public function getDbUser() {
        return $this->dbUser;
    }

    public function getDbPassword() {
        return $this->dbPassword;
    }

}

?>
